#!/usr/bin/env bash

GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w"  -o tmp/x86_64/grpcutil
GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w"  -o tmp/aarch64/grpcutil

lipo -create tmp/x86_64/grpcutil tmp/aarch64/grpcutil  -output tmp/grpcutil
